package com.dg.cuckoo.admin.service.impl;

import com.dg.cuckoo.admin.dto.proCarryOut.AppropriationDto;
import com.dg.cuckoo.admin.service.SelfFundedService;
import com.dg.cuckoo.admin.service.SuperiorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SelfFundedServiceimpl implements SelfFundedService {

    @Autowired
    private SuperiorService service;


    @Override
    public void save(String projectId, AppropriationDto dto) {
        service.powerfulSave(3,projectId,dto);
    }

    @Override
    public void update(String id, String projectId, AppropriationDto dto) {
        service.powerfulUpdate(3,id,projectId,dto);
    }

    @Override
    public String page(Integer page, Integer pageSize, String projectId) {
        return service.powerfulPage(3,page,pageSize,projectId);
    }

}
